package com.jprocms.module.cms.es.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.OffsetDateTime;

/**
 * @author jprocms
 */
@Data
@Schema(description = "内容es检索功能查询dto")
public class ContentSearchQueryDto {

    @Schema(description = "站点id")
    private Long siteId;
    @Schema(description = "栏目id")
    private Long channelId;

    @Schema(description = "发布时间-开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private OffsetDateTime releaseTimeStart;
    @Schema(description = "发布时间-结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private OffsetDateTime releaseTimeEnd;

    @Schema(description = "搜索关键词 标题、内容")
    private String q;

    @Schema(description = "状态")
    private Integer status;
}
